STEP 13: Let's store and display the return value of the function. Use our moon code as a guide.

  • First, in GRAPHICS, go to and drag in Jupiter OUTSIDE the function.
  • From , drag Return Variable OUTSIDE the function.
  • Change the name of the return variable to dino_jupiter_weight.
  • Pass the argument dino to the function get_jupiter_weight.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)